
#include "hw477.h"


int main()
{
    projectInit();

    uint32_t startTime = HAL_GetTick();
    bool status = false;

    while (1)
    {
        uint32_t currentTime = HAL_GetTick();
        uint32_t elapsed = currentTime - startTime;

        if (elapsed > 1000)
        {
            startTime = currentTime;
            status = !status;
            if (status)
                hw477Normal();
            else
                hw477Error();
        }
        HAL_Delay(100);
    }
}
